{% extends "../master.html" %}
{% block hfm_css %}
<style type="text/css">
    .layui-textarea{
        height: 200px;
    }
    .layui-bg-gray{
        top: 5px;
    }

</style>
{% end %}
{% block page_content %}
<div class="layui-fluid">
    <div class="layui-row">
        <form action="" method="post" class="layui-form-pane layui-form">
            <div class="layui-form-item layui-form-input">
                <label for="user_name" class="layui-form-label">
                    <span class="x-red">*</span>扫描名称</label>
                <div class="layui-input-block">
                    <input type="text" id="user_name" name="user_name" required="" lay-verify="required" autocomplete="off" class="layui-input" placeholder="漏扫任务名称">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label" style="width: 100px; border-radius: 10px;"><span class="x-red">*</span>任务周期</label>
                <div class="layui-inline">
                    <div class="layui-input-block " style="margin-left:0px">
                        <input type="radio" name="worktime" value="one" checked title="一次">
                        <input type="radio" name="worktime" value="day" title="每天">
                        <input type="radio" name="worktime" value="week" title="每周">
                        <input type="radio" name="worktime" value="month" title="每月">
                    </div>
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label for="scan_list" class="layui-form-label">
                    <span class="x-red">*</span> 目标列表
                </label>
                <div class="layui-input-block">
                    <textarea placeholder="可输现有的或者自定义资产进行扫描&#10;也可以在资产列表里选中某些资产进行扫描" id="scan_list" name="scan_list" class="layui-textarea" required="" lay-verify="required"></textarea>
                </div>
            </div>
        </form>
    </div>
</div>
<script>
layui.use(['table', 'form', 'transfer', 'layer', 'util'], function () {
    var table = layui.table,
        form = layui.form,
        $ = layui.$,
        transfer = layui.transfer,
        layer = layui.layer,
        util = layui.util;
    //渲染
    transfer.render({
      elem: '#test1'  //绑定元素
      ,data: [
        {"value": "1", "title": "李白", "disabled": "", "checked": ""}
        ,{"value": "2", "title": "杜甫", "disabled": "", "checked": ""}
        ,{"value": "3", "title": "贤心", "disabled": "", "checked": ""}
      ]
      ,id: 'demo1' //定义索引
    });
form.render();

})
</script>
{% end %}